/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Behavioral.ChainOfResponsibily;

/**
 *
 * @author alumno
 */
public class Gerente implements IAprobador{
    private IAprobador next;
    
    public IAprobador getNext(){
        return next;
    }
    
    public void solicitudPrestamo(int monto){
        if (monto > 50000 && monto<= 100000)
            System.out.println("yo");
        else
            next.solicitudPrestamo(monto);
    }
    
    public void setNext(IAprobador aprobador){
            next = aprobador;
}    
}
